﻿<Window x:Class="TorchView.Diagnostics.ExceptionDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Well, this is embarrasing." WindowStartupLocation="CenterOwner" Style="{StaticResource DialogWindowStyle}" MinHeight="200" Height="300" ResizeMode="CanResizeWithGrip" SizeToContent="Width" MaxWidth="800">
  <Grid Margin="7">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="*" MinHeight="100" />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Image Width="48" Height="48" Stretch="Uniform" VerticalAlignment="Center" HorizontalAlignment="Center" Source="/TorchView.Common;Component/Images/error.png" />
    <TextBlock Grid.Column="1" Margin="7,0,0,0" VerticalAlignment="Center" TextWrapping="Wrap">
      <TextBlock.Inlines>
        <Run>TorchView has experienced an expected error, we are sorry for the inconvenience.  Please report the follow exception using this link: </Run>
        <Hyperlink NavigateUri="http://torchview.codeplex.com/WorkItem/Create" RequestNavigate="Hyperlink_RequestNavigate">
          http://torchview.codeplex.com/WorkItem/Create
        </Hyperlink>
        <LineBreak />
        <LineBreak />
        <Run>Thank you for helping us make TorchView better.</Run>
      </TextBlock.Inlines>
    </TextBlock>
    <TextBox Text="{Binding Error}" Grid.ColumnSpan="2" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalScrollBarVisibility="Visible" IsReadOnly="True" IsReadOnlyCaretVisible="True" Margin="7" />
    <Button Content="Close" HorizontalAlignment="Right" Command="Close" Grid.Column="1" Grid.Row="2" />
  </Grid>
</Window>
